package com.cskaoyan.module.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
public class MarketCoupon {

    private Integer id;

    private String name;

    private String desc;

    private String tag;

    private Integer total;



    private BigDecimal discount;

    private BigDecimal min;

    private Integer limit;

    private Integer type;

    private Integer status;

    private Integer goodsType;

    private Integer[] goodsValue;

    private String code;

    private Integer timeType;

    private Integer days;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private Boolean deleted;

    public MarketCoupon(Integer id, String name, String desc, String tag, Integer total, BigDecimal discount, BigDecimal min, Integer limit, Integer type, Integer status, Integer goodsType, Integer[] goodsValue, String code, Integer timeType, Integer days, Date startTime, Date endTime, Date addTime, Date updateTime, Boolean deleted) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.tag = tag;
        this.total = total;
        this.discount = discount;
        this.min = min;
        this.limit = limit;
        this.type = type;
        this.status = status;
        this.goodsType = goodsType;
        this.goodsValue = goodsValue;
        this.code = code;
        this.timeType = timeType;
        this.days = days;
        this.startTime = startTime;
        this.endTime = endTime;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }
}